<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of BeginRequest
 *
 * @author zhuxiaohuiShwoSingleMainTask
 */
class Request {

    public static function requireLogin(){
        if (//!stristr(Yii::app()->request->requestUri, "/site/loginP") &&
            !stristr(Yii::app()->request->requestUri, "/site/login")
            ) {
            if(Yii::app()->user->isGuest){
                Yii::app()->user->loginRequired();
            }
      }
    }

    
    
}

?>
